﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToPLMX.CUiETPXShellView
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.ExportToPLMX.ViewModels;
using DnProcessSimulateCommands.ExportToPLMX.Views;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using Tecnomatix.Engineering.Ui.WPF;


namespace DnProcessSimulateCommands.ExportToPLMX;

public class CUiETPXShellView : TxWindow, IComponentConnector
{
  internal CUiETPXShellView ExportWindow;
  internal CUiETPXOutputView outputGroup;
  internal CUiETPXContentView contentgroup;
  internal Button exportBtn;
  internal Button closeBtn;
  private bool _contentLoaded;

  public CUiETPXShellView() => this.InitializeComponent();

  public CUiETPXShellView(CUiETPXShellViewModel vm)
    : this()
  {
    ((FrameworkElement) this).DataContext = (object) vm;
    vm.ExportCommand.CloseAction = new Action(((Window) this).Close);
  }

  [DebuggerNonUserCode]
  [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  public void InitializeComponent()
  {
    if (this._contentLoaded)
      return;
    this._contentLoaded = true;
    Application.LoadComponent((object) this, new Uri("/DnProcessSimulateCommands;component/exporttoplmx/views/cuietpxshellview.xaml", UriKind.Relative));
  }

  [DebuggerNonUserCode]
  [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  internal Delegate _CreateDelegate(Type delegateType, string handler)
  {
    return Delegate.CreateDelegate(delegateType, (object) this, handler);
  }

  [DebuggerNonUserCode]
  [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
  [EditorBrowsable(EditorBrowsableState.Never)]
  void IComponentConnector.Connect(int connectionId, object target)
  {
    switch (connectionId)
    {
      case 1:
        this.ExportWindow = (CUiETPXShellView) target;
        break;
      case 2:
        this.outputGroup = (CUiETPXOutputView) target;
        break;
      case 3:
        this.contentgroup = (CUiETPXContentView) target;
        break;
      case 4:
        this.exportBtn = (Button) target;
        break;
      case 5:
        this.closeBtn = (Button) target;
        break;
      default:
        this._contentLoaded = true;
        break;
    }
  }
}
